/*
 * mutex.cpp
 *
 *  Created on: 22/05/2011
 *      Author: wadi
 */

#include "mutex.h"

Mutex::Mutex() {
    pthread_mutex_init(&mutex,NULL);
}

Mutex::~Mutex() {
    pthread_mutex_destroy(&mutex);
}

void Mutex::lock(){
    pthread_mutex_lock(&mutex);
}

void Mutex::unlock(){
    pthread_mutex_unlock(&mutex);
}
